
public class Converter {


	public static void main(String[] args) 
	{
		
		
		
		/*
		int x = 10;
		int y = 5;
		
		
		
		if (command.charAt(0) =='0')
		{
			sum = x + y;
		}
		
		else 	if (command.charAt(0) =='1')
		{
			sum = x - y;
		}
		
		else if  (command.charAt(0) =='2')
		{
			sum = x * y;
		}
		
		else 
		{
			System.out.println("got error :(");
			sum = 0;
		}
		
		
		
		System.out.println("Sum is "+sum);

		*/
		
		
		
		String command   = "02";
		
		
		
		String number = "153";
		int sum = Integer.parseInt(""+number.charAt(0));
		
		for(int k  = 1; k<=command.length();k++)
		{
			
			
			
			if (command.charAt(k -1) =='0')
			{
				sum = sum + Integer.parseInt(""+number.charAt(k));
				
			}
			
			else if (command.charAt(k -1) =='1')
			{
				sum = sum  - + Integer.parseInt(""+number.charAt(k));
			}
			
			else if (command.charAt(k -1) =='2')
			{
				sum = sum * Integer.parseInt(""+number.charAt(k));
			}
			
			else 
			{
				System.out.println("got error :(");
				sum = 0;
			}
			
			
			System.out.println("Final Sum is "+sum);
			
			
			
			
		}
		
		
		
		
	}

}
